Optimal. Leaf size=309 \[ -\frac {f (a+b x)^{1+m} (c+d x)^{1-m}}{3 (b e-a f) (d e-c f) (e+f x)^3}-\frac {f (b (4 d e-c f (2-m))-a d f (2+m)) (a+b x)^{1+m} (c+d x)^{1-m}}{6 (b e-a f)^2 (d e-c f)^2 (e+f x)^2}-\frac {(b c-a d) \left (2 a b d f (3 d e-c f (1-m)) (1+m)-a^2 d^2 f^2 \left (2+3 m+m^2\right )-b^2 \left (6 d^2 e^2-6 c d e f (1-m)+c^2 f^2 \left (2-3 m+m^2\right )\right )\right ) (a+b x)^{1+m} (c+d x)^{-1-m} \, _2F_1\left (2,1+m;2+m;\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}\right )}{6 (b e-a f)^4 (d e-c f)^2 (1+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 308, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {105, 156, 12,
133} \begin {gather*} -\frac {(b c-a d) (a+b x)^{m+1} (c+d x)^{-m-1} \left (-a^2 d^2 f^2 \left (m^2+3 m+2\right )+2 a b d f (m+1) (3 d e-c f (1-m))-\left (b^2 \left (c^2 f^2 \left (m^2-3 m+2\right )-6 c d e f (1-m)+6 d^2 e^2\right )\right )\right ) \, _2F_1\left (2,m+1;m+2;\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}\right )}{6 (m+1) (b e-a f)^4 (d e-c f)^2}-\frac {f (a+b x)^{m+1} (c+d x)^{1-m} (-a d f (m+2)-b c f (2-m)+4 b d e)}{6 (e+f x)^2 (b e-a f)^2 (d e-c f)^2}-\frac {f (a+b x)^{m+1} (c+d x)^{1-m}}{3 (e+f x)^3 (b e-a f) (d e-c f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 105
Rule 133
Rule 156
Rubi steps
\begin {align*} \int \frac {(a+b x)^m (c+d x)^{-m}}{(e+f x)^4} \, dx &=-\frac {f (a+b x)^{1+m} (c+d x)^{1-m}}{3 (b e-a f) (d e-c f) (e+f x)^3}-\frac {\int \frac {(a+b x)^m (c+d x)^{-m} (-b (3 d e-c f (2-m))+a d f (2+m)+b d f x)}{(e+f x)^3} \, dx}{3 (b e-a f) (d e-c f)}\\ &=-\frac {f (a+b x)^{1+m} (c+d x)^{1-m}}{3 (b e-a f) (d e-c f) (e+f x)^3}-\frac {f (4 b d e-b c f (2-m)-a d f (2+m)) (a+b x)^{1+m} (c+d x)^{1-m}}{6 (b e-a f)^2 (d e-c f)^2 (e+f x)^2}+\frac {\int \frac {\left (-2 a b d f (3 d e-c f (1-m)) (1+m)+a^2 d^2 f^2 \left (2+3 m+m^2\right )+b^2 \left (6 d^2 e^2-6 c d e f (1-m)+c^2 f^2 \left (2-3 m+m^2\right )\right )\right ) (a+b x)^m (c+d x)^{-m}}{(e+f x)^2} \, dx}{6 (b e-a f)^2 (d e-c f)^2}\\ &=-\frac {f (a+b x)^{1+m} (c+d x)^{1-m}}{3 (b e-a f) (d e-c f) (e+f x)^3}-\frac {f (4 b d e-b c f (2-m)-a d f (2+m)) (a+b x)^{1+m} (c+d x)^{1-m}}{6 (b e-a f)^2 (d e-c f)^2 (e+f x)^2}-\frac {\left (2 a b d f (3 d e-c f (1-m)) (1+m)-a^2 d^2 f^2 \left (2+3 m+m^2\right )-b^2 \left (6 d^2 e^2-6 c d e f (1-m)+c^2 f^2 \left (2-3 m+m^2\right )\right )\right ) \int \frac {(a+b x)^m (c+d x)^{-m}}{(e+f x)^2} \, dx}{6 (b e-a f)^2 (d e-c f)^2}\\ &=-\frac {f (a+b x)^{1+m} (c+d x)^{1-m}}{3 (b e-a f) (d e-c f) (e+f x)^3}-\frac {f (4 b d e-b c f (2-m)-a d f (2+m)) (a+b x)^{1+m} (c+d x)^{1-m}}{6 (b e-a f)^2 (d e-c f)^2 (e+f x)^2}-\frac {(b c-a d) \left (2 a b d f (3 d e-c f (1-m)) (1+m)-a^2 d^2 f^2 \left (2+3 m+m^2\right )-b^2 \left (6 d^2 e^2-6 c d e f (1-m)+c^2 f^2 \left (2-3 m+m^2\right )\right )\right ) (a+b x)^{1+m} (c+d x)^{-1-m} \, _2F_1\left (2,1+m;2+m;\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}\right )}{6 (b e-a f)^4 (d e-c f)^2 (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.45, size = 255, normalized size = 0.83 \begin {gather*} \frac {(a+b x)^{1+m} (c+d x)^{-1-m} \left (-\frac {2 f (-b e+a f) (-d e+c f) (c+d x)^2}{(e+f x)^3}-\frac {f (4 b d e+b c f (-2+m)-a d f (2+m)) (c+d x)^2}{(e+f x)^2}+\frac {(b c-a d) \left (-2 a b d f (3 d e+c f (-1+m)) (1+m)+a^2 d^2 f^2 \left (2+3 m+m^2\right )+b^2 \left (6 d^2 e^2+6 c d e f (-1+m)+c^2 f^2 \left (2-3 m+m^2\right )\right )\right ) \, _2F_1\left (2,1+m;2+m;\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}\right )}{(b e-a f)^2 (1+m)}\right )}{6 (b e-a f)^2 (d e-c f)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (b x +a \right )^{m} \left (d x +c \right )^{-m}}{\left (f x +e \right )^{4}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,x\right )}^m}{{\left (e+f\,x\right )}^4\,{\left (c+d\,x\right )}^m} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________